package com.ysxsoft.wdg.ui.activity.ht;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.ysxsoft.wdg.R;
import com.ysxsoft.wdg.adapter.th.ThTypeAdapter;
import com.ysxsoft.wdg.base.BaseActivity;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.OnClick;


public class HtTypeActivity extends BaseActivity {


    @BindView(R.id.topView)
    View topView;
    @BindView(R.id.title_content)
    TextView titleContent;
    @BindView(R.id.title_tv_r)
    TextView titleTvR;
    @BindView(R.id.recyclerview)
    RecyclerView recyclerview;

    private ThTypeAdapter adapter;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_ht_type;
    }

    @Override
    protected void initData() {
        initStatusBar(topView,false);
        titleContent.setText("类别");
        titleTvR.setText("完成");

        recyclerview.setLayoutManager(new LinearLayoutManager(mContext));
        adapter = new ThTypeAdapter(R.layout.item_ht_type);
        recyclerview.setAdapter(adapter);

        List<String> list = new ArrayList<>();
        list.add("");
        list.add("");
        list.add("");
        list.add("");
        list.add("");
        adapter.setNewData(list);

    }

    @Override
    protected void setListener() {

    }


    @OnClick(R.id.title_finish)
    public void onViewClicked() {
        finish();
    }


    @Override
    protected void onPause() {
        super.onPause();
    }
}
